package com.sdy.supermarket.web.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.Response;
import com.sdy.supermarket.biz.model.GsHomeManage;
import com.sdy.supermarket.biz.service.GsHomeManageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sdy.mvc.controller.BaseController;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 韩亚恒
 * @since 2019-07-30
 */
@Slf4j
@RestController
@RequestMapping("/gsHomeManage")
public class GsHomeManageController extends BaseController {
    @Autowired
    private GsHomeManageService gsHomeManageService;
    /**
     * 分页查询
     *
     * @param page pageSize,current
     * @return
     */
    @GetMapping("/pageList")
    public Response pageList(Page<GsHomeManage> page) {
        return Response.success(gsHomeManageService.pageList(page));
    }


}
